Tootsville::Infinity-Peek-At-Inventory

Function

Infinity-Peek-At-Inventory names a function, with lambda list (D USER RECIPIENT/S):

Look at other users' inventories

Lisp PEEK-AT-INVENTORY = JSON peekAtInventory

When requesting the inventory of another player, only their public inventory will be returned.

The optional type code is as per TOOTSVILLE INFINITY-GET-INVENTORY-BY-TYPE.

Usage

{ who: LOGIN-NAME, [ type: TYPE-CODE ] }

Examples

{ who: "user-name" }

{ who: "user-name", type: "type-code" }

Status 200 OK

{ from: "peekAtInventory",
  status: true,
  for: USER-NAME,
  inv: { 0: ITEM-INFO, [ ... ] } }

Status 404 Not Found

The user name given was not found.

{ from: "peekAtInventory",
  status: false,
  err: "login.notFound",
  error: "There is no user named LOGIN" }

WRITEME

Status 400 Argument Error

The type code given was not understood

{ from: "peekAtInventory",
  status: false,
  err: "typeCode.notFound",
  error: "Parameter error: The type code given is not recognized." }

File

Defined in file src/infinity/legacy-commands.lisp.